<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        body{
            margin: 0;/*去掉外边距*/
            background-image: url("https://ts1.cn.mm.bing.net/th/id/R-C.6f9bb455b8823cdf6afd87bba65072d5?rik=G4sEmxGcYmsdUg&riu=http%3a%2f%2fbpic.588ku.com%2fback_pic%2f04%2f46%2f77%2f90585790da059c1.jpg!%2ffh%2f300%2fquality%2f90%2funsharp%2ftrue%2fcompress%2ftrue&ehk=xTZFNX33dYpy5c3Eu1%2bxY8xv34aNRkfmNByQZAyWEso%3d&risl=&pid=ImgRaw&r=0");
            background-size: cover;/*设置封面*/

        }
        #b1{
            margin-left: 150px;
        }
        #b{
            margin-top: -18px;
        }
    </style>
</head>
<body>
<div id="app">

    <el-card style="width: 530px;height: 260px;margin: 100px auto;
                background-color: rgba(255,255,255,0.3)">
        <span>用户登录页面</span>
        <hr>
    <el-radio-group v-model="labelPosition" size="small">
    </el-radio-group>
    <div style="margin: 20px;"></div>
    <el-form :label-position="labelPosition" label-width="80px" :model="user" id="b">
        <el-form-item label="用户名">
            <el-input
                    placeholder="请输入用户名"
                    v-model="user.username"
                    clearable
                    style="width: 250px">
            </el-input>
        </el-form-item>
        <el-form-item label="密码">
            <el-input placeholder="请输入密码" v-model="user.password" show-password style="width: 250px"></el-input>
        </el-form-item>

    </el-form>
        <el-button type="primary" id="b1">登录</el-button>
        <el-button type="primary" >去注册</el-button>
    </el-card>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function() {
            return {
                labelPosition: 'right',
                user:{
                    username:"",
                    password:"",
                }
            }
        },
        methods:{

        }
    })
</script>
</html>